import 'dart:convert';

import 'package:flutter/foundation.dart';

class MyTransformer {


  Map<String, dynamic>  parseAndDecode(String response) {
    return jsonDecode(response) as Map<String, dynamic>;
  }

  Future<Map<String, dynamic>> parseJson(String text) {
    return compute(parseAndDecode, text);
  }
}
